package numbers;

public class FastGrowingNumberGenerator implements INumberGenerator {

	private int number = 0;
	private int integer1 = 0;
	private int integer2 = 0;
	
	public FastGrowingNumberGenerator(int integer1, int integer2) {
		this.integer1 = integer1;
		this.integer2 = integer2;
	}

	public int nextNumber() {
		return integer1 + number++ * integer2;
	}

	public void setNextNumber(int value) {
		number = value;
	}

}
